export function getToken() {
  let url = window.location.href;
  let token = '';
  if (url.indexOf('?') !== -1 && url.indexOf('token=') !== -1) {
    token = url.split('token=')[1];
  }
  return token;
}